<?php

class Application_Form_LoginForm extends Zend_Form
{
   public function __construct($options = null)
   {
      parent::__construct($options);

      $this->setName('Login');

      $username=new Zend_Form_Element_Text('username');
      $username->  setLabel('Username')
               ->  setRequired(true);

      $password=new Zend_Form_Element_Password('password');
      $password->  setLabel('Password')
               ->  setRequired(true);

      $submitButton=new Zend_Form_Element_Submit('login');
      $submitButton->  setLabel('Login');

      $this->  addElements(array($username,$password,$submitButton));

      $this-> setMethod('post');
      $this-> setAction(Zend_Controller_Front::getInstance()->getBaseUrl().'/auth/login');

   }
}

?>
